package com.podcstr.utils;

import java.util.Random;

/**
 * @author azim
 * @since 5/9/13 
 */
public class ActivationKeyGen {

    public static String generateKey(int size) {

        String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890^*";
        StringBuilder builder = new StringBuilder();
        builder.append("");
        Random rand = new Random();
        for (int i = 0; i < size; i++) {
            builder.append(chars.charAt(rand.nextInt(chars.length() - 1)));
        }
        return builder.toString();
    }

}
